Wildform Wildform is the creator of the SWfX SWF text effects generator and the Flix SWF video encoder.
last modified November 20, 2000
©2000 Wildform, Inc.
<- back to tutorials
Embed SWF in HTML
Table of Contents
Introduction
SWfX-generated SWFs can be used alone in a webpage, just like any SWF. This tutorial describes how to do that. The process is quite simple - all you need to do is make a few simple alterations to the standard code.
Table of Contents
Object Embed Code
Let us start with this SWF:


The code to embed that SWF into this page is (color coding is just for ease of reading and is not necessary):


get the .txt file

Now, there are only a couple of things you need to change here to use this code your self. You need to change:

  1. the two occurrences of the SWF file name: in the "PARAM NAME=movie" tag; and, in the EMBED tag (please note that your file path and name may either be relative "../468x60.swf" or absolute, as in this example).
  2. the two occurrences of the SWF dimensions (height and width of your movie): in the OBJECT tag; and, in the EMBED tag.
  3. the two occurrences of the hexadecimal background color: in the "PARAM NAME=bgcolor" tag; and, in the EMBED tag (view a list of all websafe hexadecimal values).
  4. the version number. This code indicated version 4.0.0.0 in the OBJECT tag. SWfX generates Flash 4 (green buttons) and Flash 3 (regular buttons) SWFs. To indicate Flash 3, change "4,0,0,0" to "3,0,0,0". If you wish to deply Flash 5, simply change the code to "5,0,0,0".
That's it!
Table of Contents
<- back to tutorials
©2000 Wildform, Inc.